import axios from "axios";
let server = axios.create({
  timeout: 100000,
  // baseURL:'https://api.iynn.cn'
});

// 响应拦截器
server.interceptors.response.use(reponse => reponse.data, err => Promise.reject(err))

export const get = (url, config = {}) => server.get(url, config)

export const post = (url, data = {}, config = {}) => server.post(url, data, config)
